//
//  TwoViewController.swift
//  GomroClient
//
//  Created by xiaogxjkz on 2021/4/13.
//  Copyright © 2021 cn.gomro.app. All rights reserved.
//

import UIKit

/// K线图
class TwoViewController: BaseViewController {
    
    //MARK: - override
    override func viewDidLoad() {
        super.viewDidLoad()
        
        // Do any additional setup after loading the view.
    }
    
    override func layoutNavigation() {
        //MARK:导航
        self.initNavgationBar()
        
        //MARK:标题
        self.initViewControllerTitle(strTitle: "K线图")
    }
    
    override func bindViewModel() {
        
    }
    
    override func addSubViews() {
        self.view.addSubview(self.mainView)
    }
    
    override func updateViewConstraints() {
        
        self.mainView.snp.makeConstraints { make in
            make.left.right.equalTo(0)
            make.top.equalTo(Setting.K_APP_NAVIGATION_BAR_HEIGHT)
            make.bottom.equalTo(-Setting.K_APP_TABBAR_HEIGHT)
        }
        
        super.updateViewConstraints()
    }
    
    
    //MARK: - lazy load
    private lazy var mainView:TwoMainView = {
        let _mv  = TwoMainView.init(ViewModel: self.viewModel)
        return _mv
    }()
    
    private lazy var viewModel:MainViewModel = {
        return MainViewModel.init()
    }()
    
}
